<?php
/**
 * Created by PhpStorm.
 * Admininfo: Administrator
 * Date: 2017/12/12
 * Time: 17:11
 */

namespace app\admin\model;
use think\Model;
class Discount extends Model
{
	protected $insert=['status'=>1];
    protected function setStarttimeAttr($value)
    {
      $value=$value.' '."23:59:59";
       return strtotime($value);
     }
    protected function setEndtimeAttr($value)
    {
        $value=$value.' '."23:59:59";
        return strtotime($value);
    }

}